    <!DOCTYPE html>
    <html>
      <head>
        <title>MinMax-SRS</title>
        <meta charset="UTF-8">
          <meta http-equiv="Content-type" name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
        <link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css" />
        <link rel="stylesheet" type="text/css" href="css/style.css" />
      <!--  <link rel="stylesheet" href="css/jquery.mobile.tabs.css" />
        <script src="js/jquery.mobile.tabs.js"></script> -->
        <script src="js/jquery.js"></script>
        <script src="js/jquery.mobile-1.4.5.min.js"></script>
      </head>

    <body>
    <script type="text/javascript">
    $(document).ready(function(){  
        $('#btnLogin').click(function(){checkLogin();return false;});
      }); 

    function checkLogin()
    {
        var username = $('#username').val();
        var password = $('#password').val();
        if (username==''){$('#username').focus();return false;}
        if (password==''){$('#password').focus();return false;} 
        // alter(username);
        $.ajax({
                type:'POST',
                data:{functionname:"getVipLogin",username:username,password:password},
                url:'common.php',
                dataType: "text",
                success: function (result) {
                      debugger;
                      if (result == "E0000") {
                          location.href = "search.php";
                      }
                      else{
                          console.log(result);
                      }
                },
                error: function (request,error) {
                  debugger;
                  console.log(error);
                }
        }); 
    }
    </script>
     <div data-role="page" id="home">
            <div data-role="header" data-position="fixed" data-theme="b">
                <h1>个人登录</h1>
            </div>
            <div data-role="content" id="homeContent">
                <form action="index.php" method="get">     
                    用户名：<input type="text" name="username" id="username" value="2601917">                 
                    密码：<input type="password" name="password" id="password" value="2601917">                 
                    <a data-role="button" data-ajax="false" id = "btnLogin">登录</a>     
                    <a data-role="button" href="javascript:location.href='register.php'" data-ajax="false" id = "btnLogin">注册</a>     
                </form>
            </div>
            <div data-role="footer" data-position="fixed" id="footer" data-theme="b">
                <h1>Copy Right By MinMax-SRS</h1>
            </div>
        </div>
    </body>
</html>
